/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.takegoods.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.takegoods.entity.TakeGoods;
import com.jeeplus.modules.takegoods.mapper.TakeGoodsMapper;

/**
 * 提货商品Service
 * @author w
 * @version 2021-03-26
 */
@Service
@Transactional(readOnly = true)
public class TakeGoodsService extends CrudService<TakeGoodsMapper, TakeGoods> {

	public TakeGoods get(String id) {
		return super.get(id);
	}
	
	public List<TakeGoods> findList(TakeGoods takeGoods) {
		return super.findList(takeGoods);
	}
	
	public Page<TakeGoods> findPage(Page<TakeGoods> page, TakeGoods takeGoods) {
		return super.findPage(page, takeGoods);
	}
	
	@Transactional(readOnly = false)
	public void save(TakeGoods takeGoods) {
		super.save(takeGoods);
	}
	
	@Transactional(readOnly = false)
	public void delete(TakeGoods takeGoods) {
		super.delete(takeGoods);
	}

	@Transactional(readOnly = false)
	public void down(TakeGoods takeGoods) {
		mapper.deleteByLogic(takeGoods);
	}
}